# Author:sp
# CreaTime: $(DATE)
# FileName: $(NAME)
# Description: simple introdution of the code
'''字符串的驻留机制'''
a='python'
b="python"
c="""python"""
print(a,b,c,id(a),id(b),id(c))
'''驻留机制的几种交互方式'''
#第一种,字符串长度为0或1
s1=""
s2=''
print(s1 is s2)
s1='$'
s2='$'
print(s1 is s2)
#第二种，符合标识符的字符串
s1='abc%'
s2='abc%'
print(s1 == s2)
print(s1 is s2)